/**
 * Copyright © 2013 Creativor Studio.
 * About license information, please see LICENSE.txt.
 */
package org.rayson.share.http;

/**
 * Constants for HTTP protocol.
 * 
 * @author creativor
 */
public final class HttpConstants {
	/**
	 * Token stands for '&'.
	 */
	public static final char AND_TOKEN = '&';
	/**
	 * Content length header name in HTTP message headers.
	 */
	public static final String CONTENT_LENGTH_HEADER_NAME = "Content-Length";
	/**
	 * Content type header name in HTTP message headers.
	 */
	public static final String CONTENT_TYPE_HEADER_NAME = "Content-Type";
	/**
	 * Carriage return character.
	 */
	public static final char CR = 13;
	/**
	 * Token stands for '='.
	 */
	public static final char EQUALS_TOKEN = '=';
	/**
	 * HTTP version string.
	 */

	public static final String HTTP_VERSION = "HTTP/1.1";

	/**
	 * Line feed character.
	 */
	public static final char LF = 10;
	/**
	 * Carriage return and line feed string.
	 */
	public static final byte[] CRLF = new byte[] { CR, LF };
	/**
	 * An split character which split message header name and value.
	 */
	public static final char MESSAGE_HEADER_SPLITER = ':';

	/**
	 * Token stands for '%'.
	 */
	public static final char PERCENT_TOKEN = '%';

	/**
	 * Token stands for '+'.
	 */
	public static final char PLUS_TOKEN = '+';
	/**
	 * Token stands for '?'.
	 */
	public static final char QUERY_TOKEN = '?';
	/**
	 * Default request method of Rayson.
	 */
	public static final HttpMethod REQUEST_METHOD = HttpMethod.POST;
	/**
	 * Token stands for '/'.
	 */
	public static final char SLASH_TOKEN = '/';
	/**
	 * Space character.
	 */
	public static final char SPACE = 32;

	public HttpConstants() {
		// Forbidden.
	}
}
